home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / tasksel / tests / lang < prev    next >
Text File  |  2008-10-10  |  494b  |  20 lines

  1. #!/bin/sh
  2. # Hide all language tasks, and select any that match the current LANG
  3. # setting for installation.
  4. if [ "$NEW_INSTALL" ]; then
  5.     set -e
  6.     shift 1
  7.     baselang=${LANG%%_*}
  8.     fulllang=${LANG%%.*}
  9.     for locale in $@; do
  10.         if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
  11.            ( [ -n "$fulllang" ] && [ "$fulllang" = "$locale" ] ) || \
  12.            ( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
  13.            exit 0 # install without display
  14.         fi
  15.     done
  16.     exit 1 # do not display
  17. else
  18.     exit 1
  19. fi
  20.